export const assert = (
	condition: boolean,
	message: string
): asserts condition => {
	if (!condition) throw new Error(message)
}

export const toString = (v: any) =>
	Object.prototype.toString.call(v)

export const hasChanged = <T>(l: T, r: T) => l !== r

export const noop = () => {}
